#include<iostream>
#include<string>
#include<vector>
using namespace std;

class FourBlocksEasy
{
public:
    int maxScore(vector<string> grid)
    {
        int i;
        int score=0;
        bool flag=false;
        for (i=0;i<grid[0].size(); i++)
        {
			score+=2;
            if (grid[0][i]=='.'&&grid[1][i]=='.')
            {
                if (flag==true)
                {
                    score+=12;
                    flag=false;
                }
                else
                {
                    flag=true;
                }
            }
			else
			{
				flag=false;
			}
        }
        return score;
    }
};
